package com.yhd.entity.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import java.io.Serializable;
import java.util.Date;

/**
 * 排课信息主表
 */
@Data
public class CourseScheduleDetailDto implements Serializable {
    /**
     * 主键
     */
    @Column(name = "ID")
    @KeySql(useGeneratedKeys = true)
    @GeneratedValue(strategy = GenerationType.IDENTITY, generator = "jdbc")
    @ApiModelProperty(value = "id")
    private Integer id;

    /**
     * 课程id
     */
    @Column(name = "courseId")
    @ApiModelProperty(value = "id")
    private Integer courseId;

    @ApiModelProperty(value = "orderId")
    private String orderId;

    /**
     * 日期
     */
    @Column(name = "targetDate")
    @ApiModelProperty(value = "日期")
    private Date targetDate;
    /**
     * 课时开始时间
     */
    @Column(name = "startTime")
    @ApiModelProperty(value = "课时开始时间")
    private Date startTime;
    /**
     * 课时结束时间
     */
    @Column(name = "endTime")
    @ApiModelProperty(value = "课时结束时间")
    private Date endTime;
    /**
     * 备注
     */
    @Column(name = "remarks")
    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "状态，0=已过期，1=已预约，2=可预约")
    private Integer status;
    
    @ApiModelProperty(value = "课程Dto")
    private CourseDto courseDto;


}